package com.zyc.eduservice.client;

import com.zyc.commonUtils.R;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zyc
 * @create 2022-02-23-21:44
 */
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

    @ApiOperation("根据id删除视频")
    @DeleteMapping("eduvod/file/delete/{id}")
    public R deleteVideo(@ApiParam(name = "id", value = "视频id", required = true) @PathVariable("id") String id);
}
